import {converArr} from '../util/common'
import {controllerTool} from "./configs"

export const controllerTools =  converArr([...controllerTool])

export const getToolByCode = (code) => {
  return [...controllerTool].find((item) => {
    return item.code == code
  })
}
